package com.dailyblue.java.jdbc.pack0325.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

// 模拟数据库中的一张表
@Data // get+set和重写toString
@NoArgsConstructor // 无参数构造器
@AllArgsConstructor // 全参数构造器
public class Emp {
    private Integer empNo;
    private String ename;
    private String job;
    private Integer mgr;
    private String hireDate;
    private Double sal;
    private Double comm;
    private Integer deptNo;
    private Integer state;
    // 描述员工隶属于那个部门
    private Dept dept;

    public Emp(Integer empNo, String ename, String job, Integer mgr, String hireDate, Double sal, Double comm, Integer deptNo, Integer state) {
        this.empNo = empNo;
        this.ename = ename;
        this.job = job;
        this.mgr = mgr;
        this.hireDate = hireDate;
        this.sal = sal;
        this.comm = comm;
        this.deptNo = deptNo;
        this.state = state;
    }
}
